/*
 * @Author: hashMi 854059946@qq.com
 * @Date: 2023-10-28 18:25:48
 * @LastEditors: hashMi 854059946@qq.com
 * @LastEditTime: 2023-10-28 19:16:57
 * @FilePath: /guiguzhenxuan/src/router/index.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { createRouter, createWebHashHistory } from 'vue-router'
import { constantRoutes } from './routes'

const router = createRouter({
  history: createWebHashHistory(),
  routes: constantRoutes,
  scrollBehavior: () => ({ top: 0, left: 0 }),
})

export default router
